package com.example.uniappspringbootstartweb.service;

import com.example.uniappspringbootstartweb.entity.Content;

import java.util.List;
import java.util.Optional;

public interface ContentService {
    List<Content> getAllContents();

    Content saveContent(Content content);
    Content getContentById(Long id);
    void deleteContent(Long id);
    List<Content> getContentByTab(String tab);
    List<Content> searchContents(String query);
    public Optional<Content> getContentByIdAndTab(Long id, String tab) ;

}



